package ch9;

public class SchoolDaili implements Kuaidi {
	private String addr = "工大教育超市2楼";
	Kuaidi k = new Shunfeng();

	@Override
	public void send(Goods g) {
		System.out.println(new java.util.Date() + "，" + g.getFrom() + "发出了快递");
		if (g.getName().equals("钻石")) {
			g.setName("玻璃");
		}
		k.send(g);
	}

	@Override
	public void receive(Goods g) {
		System.out.println(new java.util.Date() + "，" + g.getFrom() + "接收了快递");
		k.receive(g);
	}

}
